/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 1/24/2011                        
            */

using System;
using System.Collections.Generic;
using System.Text;
namespace BusinessObject
{
    /// <summary>
    /// Define CurencyResult object. This object used to contain data that returned from data layer.
    /// </summary>
    public class CurencyResult
    {
        #region fields
        private string code;
        private string name;
        private int order;
        private string createdBy;
        private DateTime createdDate;
        private string lastUpdatedBy;
        private DateTime lastUpdatedDate;
        private Boolean isPublished;
        #endregion fields

        #region properties
        /// <summary>
        /// Define Code Property.
        /// </summary>
        public string Code
        {
            get { return this.code; }
            set { this.code = value; }
        }
        /// <summary>
        /// Define Name Property.
        /// </summary>
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        /// <summary>
        /// Define Order Property.
        /// </summary>
        public int Order
        {
            get { return this.order; }
            set { this.order = value; }
        }
        /// <summary>
        /// Define CreatedBy Property.
        /// </summary>
        public string CreatedBy
        {
            get { return this.createdBy; }
            set { this.createdBy = value; }
        }
        /// <summary>
        /// Define CreatedDate Property.
        /// </summary>
        public DateTime CreatedDate
        {
            get { return this.createdDate; }
            set { this.createdDate = value; }
        }
        /// <summary>
        /// Define LastUpdatedBy Property.
        /// </summary>
        public string LastUpdatedBy
        {
            get { return this.lastUpdatedBy; }
            set { this.lastUpdatedBy = value; }
        }
        /// <summary>
        /// Define LastUpdatedDate Property.
        /// </summary>
        public DateTime LastUpdatedDate
        {
            get { return this.lastUpdatedDate; }
            set { this.lastUpdatedDate = value; }
        }
        public Boolean IsPublished
        {
            get { return this.isPublished; }
            set { this.isPublished = value; }
        }
        #endregion properties

        #region constructor
        /// <summary>
        /// Define default constructor for CurencyResultResult Object.
        /// </summary>
        public CurencyResult()
        {
            this.code = string.Empty;
            this.name = string.Empty;
            this.order = int.MinValue;
            this.createdBy = string.Empty;
            this.createdDate = DateTime.MinValue;
            this.lastUpdatedBy = string.Empty;
            this.lastUpdatedDate = DateTime.MinValue;
            this.isPublished = true;
        }        
        #endregion constructor
    }
}